﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    Bolão DNA
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%= Html.Encode(ViewData["Message"]) %></h2>
    
    <div id="main">
    <div class="block" id="list">
    <div class="content">
        <h2 class="title">Bolões</h2>
        <div class="inner">
        <form action="#" class="form">
          <ul class="list">
            <% var bolaoList = (List<BolaoDNA.DomainModel.Bolao>)ViewData["BolaoList"]; %>
            <% foreach (var bolao in bolaoList) { %>              
            <li>
              <div class="left">
                <a href='<%= Url.Action("Details", "Bolao", new { ID = bolao.ID }) %>'><img class='avatar' src='../Images/Competicoes/<%= bolao.Competicao.ID %>.jpg' alt='<%= bolao.Competicao.Nome %>' /></a>
              </div>
              <div class="item">
                <p><%= Html.ActionLink(bolao.Nome, "Details","Bolao", new { ID = bolao.ID }, null) %></p>
              </div>
            </li>
            <% } %>
          </ul>
          </form>
        </div>
      </div>
      </div>
    <div id="footer">

      <div class="block">
        <p>Copyright &copy; 2010 Your Site.</p>
      </div>
    </div>
    </div>    
  


</asp:Content>
